package com.zdy.lambda.demo;

/**
 * Created by 逸足天涯
 * on 3/8/2020.
 */

//推导Lambda 表达式
public class TestLambda1 {
    //静态内部类
    static class Like implements ILike{
        @Override
        public void lambda() {
            System.out.println("I like Lambda");
        }
    }

    public static void main(String[] args) {
        ILike like = new Like();
        like.lambda();


    }
}
//定义 一个接口
interface ILike{
    void lambda();
}

//实现类
class Like implements ILike{
    @Override
    public void lambda() {
        System.out.println("I like Lambda");
    }
}